package com.tyj.movie.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *      电影演员
 * </p>
 *
 * @author tyj
 * @since 2021-06-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class MovieActor implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 演员名
     */
    private String name;

    /**
     * 演员照片
     */
    private String pictureUrl;

    /**
     * 创建时间
     */
//    @DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd hh:mm:ss")//数据库导出页面时json格式化
    private Date createDate;


}
